package com.gxa.api.shop;

import com.gxa.api.shop.entity.GoodIdAndNum;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @author JunYu
 * @create 2022-10-08--13:49
 */
@FeignClient(value="wm-shop-service")
public interface ShopApi {
    //直接返回商品id和商品数量
    @GetMapping(value = "order/findAllGoodsInventory")
    public List<GoodIdAndNum> findGoodIdAndNum();
    //通过商品id返回商品数量
    @GetMapping(value = "/findNumByGoodId")
    public Integer findNumByGoodId(Long goodId);
    //通过店铺id返回店铺店铺名称
}
